projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1077bc0
)
(doprnt): Error if %-width is too big.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 11 Aug 1995 00:42:28 +0000
(
00:42
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 11 Aug 1995 00:42:28 +0000
(
00:42
+0000)
src/doprnt.c
patch
|
blob
|
history
diff --git
a/src/doprnt.c
b/src/doprnt.c
index 63f724cf7a785d1ed7d975a5788f3aba10a7b3f9..6db0eda15147111351385c9622a5ce20a96c5b15 100644
(file)
--- a/
src/doprnt.c
+++ b/
src/doprnt.c
@@
-104,10
+104,8
@@
doprnt (buffer, bufsize, format, format_end, nargs, args)
size_bound = -size_bound;
size_bound += 50;
- if (size_bound > bufsize)
- /* This is certainly enough that it doesn't matter
- to lose the rest. */
- size_bound = bufsize + 100;
+ if (size_bound > (unsigned) (1 << (INTBITS - 1)))
+ error ("Format padding to large");
/* Make sure we have that much. */
if (size_bound > size_allocated)